home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / CAuthentication 1.0 / CAuthentication.h < prev   
Text File  |  1993-10-14  |  1KB  |  50 lines

  1. /******************************************************************************
  2.  CAuthentication.h
  3.  
  4.         Interface for the AOCE Authentication Class
  5.         
  6.         Copyright © 1993 Marty Wachter. All rights reserved.
  7.         
  8.  
  9. ******************************************************************************/
  10.  
  11. #pragma once
  12.  
  13. #define        kAuthenticationStrs        3000
  14. #define        kAOCENotInstalled        1
  15. #define        kNotAuthorizedUser        2
  16.  
  17. #include "CObject.h"
  18.  
  19. #include <OCEAuthDir.h>
  20. #include <OCE.h>
  21. #include <OCEErrors.h>
  22. #include <OCEStandardDirectory.h>
  23.  
  24. class CAuthentication : public CObject {
  25.  
  26. public:
  27.     //Instance Variables
  28.     
  29.     AuthIdentity             userIdentity;
  30.     Str255                     guestPrompt;
  31.     Str255                     specificPrompt;
  32.     Str255                     localPrompt;
  33.     Boolean                    allowGuest;
  34.     Boolean                    allowSpecific;
  35.     Boolean                    allowLocal;
  36.     Boolean                    hasOCE;
  37.     OSErr                    status;
  38.     SDPIdentityKind            selectedKind;
  39.     
  40.     //Instance Methods
  41.     void                IAuthentication(ConstStr255Param         aGuestPrompt,
  42.                                         ConstStr255Param         aSpecificIDPrompt,
  43.                                         ConstStr255Param         aLocalIDPrompt,
  44.                                         Boolean                    aAllowGuest,
  45.                                         Boolean                    aAllowSpecific,
  46.                                         Boolean                    aAllowLocal);
  47.                                         
  48.     virtual void        GetUserID(void);
  49.  
  50. };